package com.mimosa.common.entity;

import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.MappedSuperclass;

import com.mimosa.common.customer.TCustomer;

/**
 * SAAS应用的实体类，内置Customer对象
 * 
 * @author ggeagle
 *
 */
@MappedSuperclass
public abstract class BaseSaasEntity extends BaseEntity {
	@ManyToOne
	@JoinColumn(name = "customer_Id")
	private TCustomer customer;

	public TCustomer getCustomer() {
		return customer;
	}

	public void setCustomer(TCustomer customer) {
		this.customer = customer;
	}
}